home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Softwarová Záchrana 3
/
Softwarova-zachrana-3.bin
/
Win Ghost
/
Setup_Win_Ghost_3.00.exe
/
{app}
/
plugins
/
mailme
/
mailme.php
< prev
next >
Wrap
Text File
|
2004-01-15
|
1KB
|
65 lines
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Win Ghost plug-in:MailMe</title>
<style type="text/css">
body {
font: 12px Verdana, Geneva, Arial, Helvetica, sans-serif;
color: Black;
text-align: center;
}
</style>
</head>
<body>
<?php
$dateTime12H = "";
$dateTime24H = "";
$usePassword = "";
$myPassword = "";
$myMailAdress = "";
$mySubject = "";
$myMessage = "";
$headers = "";
$dateTime12H = date("m j, Y, g:i a"); //12 hour clock.
$dateTime24H = date("m j, Y, H:i"); //24 hour clock.
include("config.php");
$mySubject = "Win Ghost trigger";
$myMessage = "Win Ghost found a trigger.\n\n24 hour clock: $dateTime24H\n12 hour clock: $dateTime12H";
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text; charset=iso-8859-1\r\n";
$headers .= "From:Win Ghost\r\n";
$headers .= "X-Mailer: Win Ghost\r\n";
IF ($usePassword){
IF ($_GET["password"]==$myPassword){
IF (mail($myMailAdress, $mySubject, $myMessage, $headers)){
echo "A mail has been sent to your mailadress.";
}
ELSE{
echo "An error has occured, could not send mail.";
}
}
ELSE{
echo "Error: password is not correct.";
}
}
ELSE{
IF (mail($myMailAdress, $mySubject, $myMessage, $headers)){
echo "A mail has been sent to your mailadress.";
}
ELSE{
echo "An error has occured, could not send mail.";
}
}
?>
</body>
</html>